dart-sdk/sdk/lib
Srujan Gaddam 2767fca6fe Revert "[dart:js_interop] Remove Object.toJS and JSNumber.toDart"
This reverts commit 16fcfe7eae.

Reason for revert: Flutter changes haven't landed to google3 yet.

Original change's description:
> [dart:js_interop] Remove Object.toJS and JSNumber.toDart
>
> Modifies JSBoxedDartObject reified type on JS backends and also
> modifies JSBoxedDartObject.toDart now that a proper box is introduced.
> Also uses a JS symbol in JSBoxedDartObject.toDart for a property
> check so that different Dart apps don't accidentally share Dart
> objects. It's now an error to call this function on non-boxed objects.
>
> Fixes a type issue where creating a new object literal with the JS
> foreign function was resulting in dart2js thinking toJSBox would
> always throw. Changing the typeDescription to PlainJavaScriptObject
> instead of =Object fixes that issue.
>
> CoreLibraryReviewExempt: Backend-specific library.
> Change-Id: I5cfb1f32ff4328fafdf9831b0d8da806c39391d9
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/309082
> Reviewed-by: Joshua Litt <joshualitt@google.com>
> Commit-Queue: Srujan Gaddam <srujzs@google.com>

Change-Id: I469ad04db7b49ffef47a46ccac97e909e4865719
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/313580
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
2023-07-13 21:06:05 +00:00
..
_http Tiny code cleanup: Remove _asyncRunZoned being an alias of runZoned 2023-07-11 11:37:57 +00:00
_internal Revert "[dart:js_interop] Remove Object.toJS and JSNumber.toDart" 2023-07-13 21:06:05 +00:00
_wasm [dart2wasm] Rename the dart:wasm library to dart:_wasm. 2023-04-04 11:52:18 +00:00
async [vm] Rework awaiter stack unwinding. 2023-06-30 14:03:03 +00:00
cli Add library doc comment to dart:cli 2021-10-28 10:23:50 +00:00
collection Add a notice about HashMap keys changing hashCode 2023-06-23 00:10:19 +00:00
convert Make utf8.encode() have Uint8List return type 2023-07-11 08:54:33 +00:00
core Document the return value of any and every for empty values. 2023-07-11 13:05:40 +00:00
developer Support the dart:developer timeline APIs in dart2js and DDC. 2023-06-30 22:38:11 +00:00
ffi [vm] Async FFI callbacks 2023-06-28 01:00:18 +00:00
html Reland "[dart:html] Throw exception if Window.open opens null window" and 2023-07-06 15:50:48 +00:00
indexed_db/dart2js Tighten introductory text 2023-05-16 13:55:23 +00:00
internal [cfe] Check @patch annotations 2023-06-13 07:27:08 +00:00
io Tiny code cleanup: Remove _asyncRunZoned being an alias of runZoned 2023-07-11 11:37:57 +00:00
isolate [sdk] Provide Isolate.resolvePackageUriSync 2023-07-11 12:59:33 +00:00
js Reland "[pkg:js/dart:js_interop] Move annotations to dart:_js_annotations" 2023-05-02 15:24:18 +00:00
js_interop Revert "[dart:js_interop] Remove Object.toJS and JSNumber.toDart" 2023-07-13 21:06:05 +00:00
js_interop_unsafe [dart:js_interop] Expose dart:js_interop through dart.dev 2023-05-04 17:41:53 +00:00
js_util [js_util] Make callMethod take an Object method. 2023-03-23 00:23:00 +00:00
math Adding class modifiers to dart:math. 2023-03-13 14:01:26 +00:00
mirrors [sdk docs] update sdk libraries to use triple slash docs 2023-03-14 19:10:25 +00:00
svg/dart2js [sdk docs] update sdk libraries to use triple slash docs 2023-03-14 19:10:25 +00:00
typed_data [flip-modifiers]: Reapply "Enforce current library restrictions." 2023-03-03 09:37:38 +00:00
vmservice Make Iterable be the default implementation of itself. 2023-04-04 21:45:19 +00:00
web_audio/dart2js [sdk docs] update sdk libraries to use triple slash docs 2023-03-14 19:10:25 +00:00
web_gl/dart2js [sdk docs] update sdk libraries to use triple slash docs 2023-03-14 19:10:25 +00:00
web_sql/dart2js [sdk docs] update sdk libraries to use triple slash docs 2023-03-14 19:10:25 +00:00
analysis_options.yaml [vm/ffi] Support varargs 2023-01-20 10:30:41 +00:00
libraries.json [js] Add JSStringImpl box for JSString. 2023-06-26 17:15:24 +00:00
libraries.yaml [js] Add JSStringImpl box for JSString. 2023-06-26 17:15:24 +00:00
PRESUBMIT.py [sdk/lib] Better presubmit check for libraries.{json,yaml} 2022-01-10 08:26:20 +00:00
vmservice_libraries.json
vmservice_libraries.yaml update the tooling to generate libraries.json from libraries.yaml 2021-07-27 23:02:50 +00:00