Index: tests/com/google/caja/plugin/es53-test-assert-es5mode.js |
=================================================================== |
--- tests/com/google/caja/plugin/es53-test-assert-es5mode.js (revision 5202) |
+++ tests/com/google/caja/plugin/es53-test-assert-es5mode.js (working copy) |
@@ -1,11 +1 @@ |
-// Use a quirk of es5 vs es53 to determine which mode we're really |
-// executing in |
- |
-var imInES5 = false; |
-try { |
- imInES5 = "object" === typeof undeclareVar; |
-} catch (e) { |
- imInES5 = true; |
-} |
- |
-assertTrue("Expected ES5 mode", imInES5); |
+assertTrue("Expected ES5 mode", inES5Mode); |