Commit Graph

10 Commits

Author SHA1 Message Date
justinfagnani@google.com 22623da3aa Remove sync ports from interop.js
BUG=
R=jacobr@google.com

Review URL: https://codereview.chromium.org//49793003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29579 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 19:02:48 +00:00
vsm@google.com 95e272386c Use userAgent instead of webkitStartDart
This modifies our browser package and test scripts to use the
userAgent instead of webkitStartDart (which is gone) to determine if
we have native dart support.

I'm TBR-ing to get rid of a ton of warnings on the Dartium bots (they
are trying to run both native tests (successfully) and compiled-to-js
tests (warning no js file)).

E.g., see HttpServer warnings on this otherwise green run:

http://chromegw.corp.google.com/i/client.dart/builders/dartium-mac-inc-be/builds/634/steps/drt_core_checked_tests/logs/stdio

Siggi: you have comments elsewhere around removing/refactoring when
webkitStartDart is gone.  They are still there.

TBR=sigmund@google.com,ricow@google.com

Review URL: https://codereview.chromium.org//52023002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29515 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 04:08:39 +00:00
justinfagnani@google.com 88f372316b Fix missing declaration for local variable in interop.js
BUG=
R=cbracken@google.com

Review URL: https://codereview.chromium.org//32843006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28979 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-22 02:41: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 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
vsm@google.com 609c1239d5 Move interop js code out of dart.js
BUG=7973

Note: this is a breaking change and would be advertised as such.
Anyone using js-interop would need to explicitly include:

<script type="text/javascript" "pkg/browser/lib/interop.js"></script>

along with dart.js in their HTML.  Those who don't need js-interop can
save on this code.

Alexandre: I'm imagining interop.js would be the landing spot for
dart:js bootstrap code as well.

R=alexandre.ardhuin@gmail.com, dgrove@google.com

Review URL: https://codereview.chromium.org//16592002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23855 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 15:33:18 +00:00