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

Unified Diff: pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart

Issue 809433004: dart2js: is-checks for the new emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Improved test. Created 5 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart
index 5039711dc44c0e14e71ad264ac8f342c6210bab6..981ed489d31d8285a91eb1fc3f0aca80020f45d2 100644
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart
@@ -125,8 +125,10 @@ class ContainerBuilder extends CodeEmitterHelper {
// Instead we need to call the statically resolved target.
// `<class>.prototype.bar$1.call(this, argument0, ...)`.
body = js.statement(
- 'return #.prototype.#.call(this, #);',
- [backend.emitter.classAccess(superClass), methodName,
+ 'return #.#.call(this, #);',
+ [backend.emitter.prototypeAccess(superClass,
+ hasBeenInstantiated: true),
+ methodName,
argumentsBuffer]);
} else {
body = js.statement(

Powered by Google App Engine
This is Rietveld 408576698