mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 14:05:15 +00:00
9 lines
265 B
JavaScript
9 lines
265 B
JavaScript
"use strict";
|
|
|
|
test("basic functionality", () => {
|
|
[true, false, "foo", 123].forEach(primitive => {
|
|
expect(() => {
|
|
primitive.foo = "bar";
|
|
}).toThrowWithMessage(TypeError, "Cannot assign property foo to primitive value");
|
|
});
|
|
});
|