Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Target V8's experimental strong mode #358

Open
vsmenon opened this issue Sep 30, 2015 · 1 comment
Open

Target V8's experimental strong mode #358

vsmenon opened this issue Sep 30, 2015 · 1 comment

Comments

@vsmenon
Copy link
Contributor

vsmenon commented Sep 30, 2015

Running Chrome with --js-flags="--strong-mode" and replacing all uses of 'use strict' with 'use strong', we get:

Chrome 47.0.2523 (Mac OS X 10.10.5) ERROR
  Uncaught SyntaxError: In strong mode, '==' and '!=' are deprecated, use '===' and '!==' instead
  at /Users/vsm/git/ddc-clean/lib/runtime/dart_library.js:60
@jmesserly
Copy link
Contributor

well that one's easy to fix at least ;-)

Aside: ideally, they'd allow == null and != null which is probably what we're doing. It's a nice way to express "null or undefined"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants