3789983e89
Reviewed-by: darcy, ihse
13 lines
281 B
JavaScript
13 lines
281 B
JavaScript
/*
|
|
* This is the test JavaScript program used in jjs-strictTest.sh
|
|
*/
|
|
|
|
try {
|
|
v = "hello";
|
|
throw new Error("should have thrown ReferenceError");
|
|
} catch (e) {
|
|
if (! (e instanceof ReferenceError)) {
|
|
throw new Error("ReferenceError expected, got " + e);
|
|
}
|
|
}
|