justinfagnani@google.com
b18fb9f535
Fix js_test on IE9
...
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//53873003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29638 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 03:48:37 +00:00
justinfagnani@google.com
0dce271821
Add Event, HtmlCollection, NodeList and Window to transferrable types
...
BUG=
Review URL: https://codereview.chromium.org//46533003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29623 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 01:43:38 +00:00
jacobr@google.com
fa8b243f62
Add JsArray
...
BUG=
R=jacobr@google.com
Review URL: https://codereview.chromium.org//41163005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29393 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-28 20:46:36 +00:00
justinfagnani@google.com
2f0a7104a7
Add test for calling emulated functions from JS
...
BUG=
R=jacobr@google.com
Review URL: https://codereview.chromium.org//35533003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29267 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 18:25:24 +00:00
justinfagnani@google.com
45e20b5921
"Fix" dart:js tests in IE9
...
BUG=
R=jacobr@google.com
Review URL: https://codereview.chromium.org//35173004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29125 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 21:12:36 +00:00
jacobr@google.com
5ee178076a
A few API changes:
...
Remove Callback in favor of directly using closures or JsFunction.withThis().
Move jsify() to a named constructor on JsObject.
- Throw on types other than Map and Iterable.
- Handle cycles
Add JsObject.fromDartObject() which force a transferrable native to be proxied.
Still to do: Reach a conclusion on Serializable
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//27514003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28902 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-19 04:36:10 +00:00
justinfagnani@google.com
e32d5c24c3
Cleanup JS() expressions.
...
New Constructor for JsObject that preserves the correct prototype.
Type check user-supplied values that pass through to JS().
Don't call _convertToJs(this)
Based on: https://chromiumcodereview.appspot.com/26092003/
R=ahe@google.com , alexandre.ardhuin@gmail.com
Review URL: https://codereview.chromium.org//26270003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28813 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 18:13:40 +00:00
justinfagnani@google.com
03eb80a189
Maintain referential integrity of proxy instances in dart:js
...
Rename DartProxy to DartObject in JavaScript to be symmetrical with JsObject
R=ahe@google.com , alexandre.ardhuin@gmail.com
Review URL: https://codereview.chromium.org//26092003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28686 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-15 21:43:16 +00:00
justinfagnani@google.com
cee2b116ce
Revert "Maintain referential integrity of proxy instances in dart:js"
...
This reverts commit bf87105c535cd2f6fa28904547b4e9f2804bc301.
BUG=
Review URL: https://codereview.chromium.org//26742008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28557 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 21:28:15 +00:00
justinfagnani@google.com
b2316c569a
Maintain referential integrity of proxy instances in dart:js
...
Rename DartProxy to DartObject in JavaScript to be symmetrical with JsObject
R=ahe@google.com , alexandre.ardhuin@gmail.com
Review URL: https://codereview.chromium.org//26092003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28547 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 20:24:18 +00:00
justinfagnani@google.com
c282ae9d65
Cache the context proxy. Don't use window for global 'this'.
...
BUG=
R=ahe@google.com , alexandre.ardhuin@gmail.com , vsm@google.com
Review URL: https://codereview.chromium.org//25138003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28181 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-02 21:06:57 +00:00
vsm@google.com
699bf601f7
Fix dart:js test for IE
...
R=justinfagnani@google.com
Review URL: https://codereview.chromium.org//19235003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25038 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-16 00:02:52 +00:00
vsm@google.com
a81a6fcce6
RFC: introduce dart:js
...
This is a port of js-interop with an optimized dart2js compilation.
It also gets rid of noSuchMethod.
I also made some renamings inspired by https://github.com/dart-lang/js-interop/issues/68
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org//15782009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25018 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-15 19:44:44 +00:00