Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1350)

Unified Diff: tests/com/google/caja/plugin/es53-test-assert-es5mode.js

Issue 6827077: Mitigate top-level vars and typeof differences between ES5 and ES5/3 with rewriting (Closed) Base URL: http://google-caja.googlecode.com/svn/trunk/
Patch Set: Mitigate top-level vars and typeof differences between ES5 and ES5/3 with rewriting Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b