Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Issue 26270003: Cleanup JS() expressions. New Constructor for JsObject that preserves the correct prototype. Type c… (Closed)

Created:
7 years, 2 months ago by justinfagnani
Modified:
7 years, 2 months ago
Reviewers:
vsm, alexandre.ardhuin, ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

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 Committed: https://code.google.com/p/dart/source/detail?r=28813

Patch Set 1 : #

Patch Set 2 : add expect() to constructor test #

Total comments: 18

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+393 lines, -240 lines) Patch
M pkg/browser/lib/interop.js View 1 2 3 8 chunks +54 lines, -58 lines 0 comments Download
M sdk/lib/js/dart2js/js_dart2js.dart View 1 2 3 6 chunks +166 lines, -84 lines 0 comments Download
M sdk/lib/js/dartium/js_dartium.dart View 1 2 3 5 chunks +114 lines, -78 lines 0 comments Download
M tests/html/js_test.dart View 1 2 3 5 chunks +59 lines, -20 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
justinfagnani
7 years, 2 months ago (2013-10-11 01:33:13 UTC) #1
ahe
lgtm https://chromiumcodereview.appspot.com/26270003/diff/11001/sdk/lib/js/dart2js/js_dart2js.dart File sdk/lib/js/dart2js/js_dart2js.dart (right): https://chromiumcodereview.appspot.com/26270003/diff/11001/sdk/lib/js/dart2js/js_dart2js.dart#newcode71 sdk/lib/js/dart2js/js_dart2js.dart:71: // the wrapped JS object Please convert to ...
7 years, 2 months ago (2013-10-11 12:40:51 UTC) #2
alexandre.ardhuin
The same kind of object construction need to be changed in interop.js ( see function ...
7 years, 2 months ago (2013-10-11 14:07:13 UTC) #3
justinfagnani
https://chromiumcodereview.appspot.com/26270003/diff/11001/sdk/lib/js/dart2js/js_dart2js.dart File sdk/lib/js/dart2js/js_dart2js.dart (right): https://chromiumcodereview.appspot.com/26270003/diff/11001/sdk/lib/js/dart2js/js_dart2js.dart#newcode71 sdk/lib/js/dart2js/js_dart2js.dart:71: // the wrapped JS object On 2013/10/11 12:40:51, ahe ...
7 years, 2 months ago (2013-10-12 21:16:22 UTC) #4
alexandre.ardhuin
https://chromiumcodereview.appspot.com/26270003/diff/16001/pkg/browser/lib/interop.js File pkg/browser/lib/interop.js (right): https://chromiumcodereview.appspot.com/26270003/diff/16001/pkg/browser/lib/interop.js#newcode475 pkg/browser/lib/interop.js:475: // The first argument to bind() is the binding ...
7 years, 2 months ago (2013-10-13 18:49:41 UTC) #5
justinfagnani
https://chromiumcodereview.appspot.com/26270003/diff/16001/pkg/browser/lib/interop.js File pkg/browser/lib/interop.js (right): https://chromiumcodereview.appspot.com/26270003/diff/16001/pkg/browser/lib/interop.js#newcode475 pkg/browser/lib/interop.js:475: // The first argument to bind() is the binding ...
7 years, 2 months ago (2013-10-15 22:18:08 UTC) #6
alexandre.ardhuin
lgtm
7 years, 2 months ago (2013-10-16 08:12:01 UTC) #7
justinfagnani
7 years, 2 months ago (2013-10-17 18:15:13 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 manually as r28813 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698