2020-05-27 22:22:08 -07:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
load("test-common.js");
|
|
|
|
|
|
|
|
|
|
try {
|
2020-07-05 09:27:00 -07:00
|
|
|
assert(isStrictMode());
|
2020-05-27 22:22:08 -07:00
|
|
|
|
2020-07-05 09:27:00 -07:00
|
|
|
(function () {
|
|
|
|
|
assert(isStrictMode());
|
|
|
|
|
})();
|
2020-05-27 22:22:08 -07:00
|
|
|
|
2020-07-05 09:27:00 -07:00
|
|
|
(function () {
|
|
|
|
|
"use strict";
|
|
|
|
|
assert(isStrictMode());
|
|
|
|
|
})();
|
2020-05-27 22:22:08 -07:00
|
|
|
|
2020-07-05 09:27:00 -07:00
|
|
|
(() => {
|
|
|
|
|
assert(isStrictMode());
|
|
|
|
|
})();
|
2020-05-27 22:22:08 -07:00
|
|
|
|
2020-07-05 09:27:00 -07:00
|
|
|
(() => {
|
|
|
|
|
"use strict";
|
|
|
|
|
assert(isStrictMode());
|
|
|
|
|
})();
|
2020-05-27 22:22:08 -07:00
|
|
|
|
2020-07-05 09:27:00 -07:00
|
|
|
console.log("PASS");
|
2020-05-27 22:22:08 -07:00
|
|
|
} catch (e) {
|
2020-07-05 09:27:00 -07:00
|
|
|
console.log("FAIL: " + e);
|
2020-05-27 22:22:08 -07:00
|
|
|
}
|