|
534 | 534 | function enterScope() {
|
535 | 535 | enterJavaScriptScope();
|
536 | 536 | if (!_dartEnterScopePort) {
|
537 |
| - _dartEnterScopePort = window.lookupPort('js-dart-enter-scope'); |
| 537 | + _dartEnterScopePort = window.lookupPort('js-dart-interop-enter-scope'); |
538 | 538 | }
|
539 | 539 | return _dartEnterScopePort.callSync([]);
|
540 | 540 | }
|
|
550 | 550 | function exitScope(depth) {
|
551 | 551 | exitJavaScriptScope();
|
552 | 552 | if (!_dartExitScopePort) {
|
553 |
| - _dartExitScopePort = window.lookupPort('js-dart-exit-scope'); |
| 553 | + _dartExitScopePort = window.lookupPort('js-dart-interop-exit-scope'); |
554 | 554 | }
|
555 | 555 | return _dartExitScopePort.callSync([ depth ]);
|
556 | 556 | }
|
557 | 557 |
|
558 |
| - makeGlobalPort('dart-js-context', context); |
559 |
| - makeGlobalPort('dart-js-create', construct); |
560 |
| - makeGlobalPort('dart-js-proxy-count', proxyCount); |
561 |
| - makeGlobalPort('dart-js-equals', proxyEquals); |
562 |
| - makeGlobalPort('dart-js-instanceof', proxyInstanceof); |
563 |
| - makeGlobalPort('dart-js-has-property', proxyHasProperty); |
564 |
| - makeGlobalPort('dart-js-delete-property', proxyDeleteProperty); |
565 |
| - makeGlobalPort('dart-js-convert', proxyConvert); |
566 |
| - makeGlobalPort('dart-js-enter-scope', enterJavaScriptScope); |
567 |
| - makeGlobalPort('dart-js-exit-scope', exitJavaScriptScope); |
568 |
| - makeGlobalPort('dart-js-globalize', function(data) { |
| 558 | + makeGlobalPort('dart-js-interop-context', context); |
| 559 | + makeGlobalPort('dart-js-interop-create', construct); |
| 560 | + makeGlobalPort('dart-js-interop-proxy-count', proxyCount); |
| 561 | + makeGlobalPort('dart-js-interop-equals', proxyEquals); |
| 562 | + makeGlobalPort('dart-js-interop-instanceof', proxyInstanceof); |
| 563 | + makeGlobalPort('dart-js-interop-has-property', proxyHasProperty); |
| 564 | + makeGlobalPort('dart-js-interop-delete-property', proxyDeleteProperty); |
| 565 | + makeGlobalPort('dart-js-interop-convert', proxyConvert); |
| 566 | + makeGlobalPort('dart-js-interop-enter-scope', enterJavaScriptScope); |
| 567 | + makeGlobalPort('dart-js-interop-exit-scope', exitJavaScriptScope); |
| 568 | + makeGlobalPort('dart-js-interop-globalize', function(data) { |
569 | 569 | if (data[0] == "objref" || data[0] == "funcref") return proxiedObjectTable.globalize(data[1]);
|
570 | 570 | throw 'Illegal type: ' + data[0];
|
571 | 571 | });
|
572 |
| - makeGlobalPort('dart-js-invalidate', function(data) { |
| 572 | + makeGlobalPort('dart-js-interop-invalidate', function(data) { |
573 | 573 | if (data[0] == "objref" || data[0] == "funcref") return proxiedObjectTable.invalidate(data[1]);
|
574 | 574 | throw 'Illegal type: ' + data[0];
|
575 | 575 | });
|
|
0 commit comments