1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
8 * Author: christine@netscape.com
12 var VERSION = "ECMA_2";
13 var TITLE = "Keywords";
17 writeLineToLog("This test requires option javascript.options.strict enabled");
20 if (typeof document == "undefined" && typeof options == 'function')
22 options("strict", "werror");
26 prefValue = setBoolPref("javascript.options.werror", true);
29 var result = "failed";
35 if (x instanceof SyntaxError)
39 if (typeof prefValue == 'boolean')
41 setBoolPref("javascript.options.werror", prefValue);
45 "using the expression \"super\" shouldn't cause js to crash",