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

Issue 1583773003: Support JS$ prefix for dart and fix bug where _operator_getter and the [] operator were used incons… (Closed)

Created:
4 years, 11 months ago by Jacob
Modified:
4 years, 11 months ago
Reviewers:
Alan Knight, terry
CC:
reviews_dartlang.org, ricow1
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Support JS$ prefix for dart and fix bug where _operator_getter and the [] operator were used inconsistently. Would only impact future use cases where js APIs returned types not auto-proxied with dart:html. Support typed JS interop classes that extend the behavior of dart:html types in Dartium. This theoretically enables supporting package:dom at the same time as dart:html as well as helping with JavaScript libraries that monkey patch the dom. Also support JS$ name prefix to resolve name conflicts with dart reserved words and with dart:html libraries. Cleanup addEventListener and friends so they are consistent with typed JS Interop and fix bugs in the unlikely case where multiple functions have the same identity hash. Add checks to make it easier to catch when allowInterop is accidentally omitted when using the new typed JavaScript interop. You will now get an exception any time you pass a Function to JS via the new typed interop without first calling allowInterop. BUG= R=alanknight@google.com Committed: https://github.com/dart-lang/sdk/commit/cf7ae2e0cb2c9af91c86ee603a71d114e72905db

Patch Set 1 #

Total comments: 1

Patch Set 2 : remove tests to put with matching dart2js tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+839 lines, -1501 lines) Patch
M sdk/lib/html/dartium/html_dartium.dart View 243 chunks +247 lines, -742 lines 0 comments Download
M sdk/lib/html/html_common/conversions_dartium.dart View 8 chunks +38 lines, -48 lines 0 comments Download
M sdk/lib/indexed_db/dartium/indexed_db_dartium.dart View 6 chunks +6 lines, -18 lines 0 comments Download
M sdk/lib/js/dartium/js_dartium.dart View 28 chunks +404 lines, -249 lines 0 comments Download
M sdk/lib/svg/dartium/svg_dartium.dart View 107 chunks +107 lines, -321 lines 0 comments Download
M sdk/lib/web_audio/dartium/web_audio_dartium.dart View 23 chunks +23 lines, -69 lines 0 comments Download
M sdk/lib/web_gl/dartium/web_gl_dartium.dart View 1 chunk +1 line, -3 lines 0 comments Download
M tests/html/html.status View 1 chunk +0 lines, -1 line 0 comments Download
M tests/lib/analyzer/analyze_library.status View 1 chunk +0 lines, -2 lines 0 comments Download
M tools/dom/scripts/generator.py View 1 chunk +2 lines, -6 lines 0 comments Download
M tools/dom/scripts/systemhtml.py View 1 chunk +1 line, -3 lines 0 comments Download
M tools/dom/src/dartium_CustomElementSupport.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/dom/templates/html/dartium/html_dartium.darttemplate View 5 chunks +7 lines, -31 lines 0 comments Download
M tools/dom/templates/html/impl/impl_DOMException.darttemplate View 1 chunk +1 line, -6 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
Jacob
I was holding off on this CL until Dartium 45 landed but looks like it ...
4 years, 11 months ago (2016-01-13 21:02:09 UTC) #2
Alan Knight
lgtm https://codereview.chromium.org/1583773003/diff/1/sdk/lib/js/dartium/js_dartium.dart File sdk/lib/js/dartium/js_dartium.dart (right): https://codereview.chromium.org/1583773003/diff/1/sdk/lib/js/dartium/js_dartium.dart#newcode910 sdk/lib/js/dartium/js_dartium.dart:910: if (dartClass_instance is JSObject && I suppose the ...
4 years, 11 months ago (2016-01-14 00:22:09 UTC) #3
Jacob
4 years, 11 months ago (2016-01-15 18:40:36 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
cf7ae2e0cb2c9af91c86ee603a71d114e72905db (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698