| Index: sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart b/sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart
|
| index 177295b4f42fd19253a7345a6ba3cd456aeec131..97700a7bee865515680cfd605f294e0d467fc2a9 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart
|
| @@ -133,6 +133,15 @@ void JS_SET_CURRENT_ISOLATE(var isolate) {}
|
| dynamic JS_CREATE_ISOLATE() {}
|
|
|
| /**
|
| + * Returns the JavaScript constructor function for Dart's Object class.
|
| + * This can be used for type tests, as in
|
| + *
|
| + * if (JS('bool', '# instanceof #', obj, JS_DART_OBJECT_CONSTRUCTOR()))
|
| + * ...
|
| + */
|
| +dynamic JS_DART_OBJECT_CONSTRUCTOR() {}
|
| +
|
| +/**
|
| * Returns the prefix used for generated is checks on classes.
|
| */
|
| String JS_OPERATOR_IS_PREFIX() {}
|
|
|