mirror of
https://github.com/tc39/test262.git
synced 2025-05-03 14:30:27 +02:00
19 lines
362 B
JavaScript
19 lines
362 B
JavaScript
// Reviewed
|
|
//@ runFTLNoCJIT
|
|
|
|
function shouldEqual(actual, expected) {
|
|
if (actual != expected) {
|
|
throw "ERROR: expect " + expected + ", actual " + actual;
|
|
}
|
|
}
|
|
|
|
var exception;
|
|
|
|
try {
|
|
Symbol(1)();
|
|
} catch (e) {
|
|
exception = e;
|
|
}
|
|
|
|
shouldEqual(exception, "TypeError: Symbol(1) is not a function. (In 'Symbol(1)()', 'Symbol(1)' is a Symbol)");
|