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

Unified Diff: pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart

Issue 2550903002: Fix csp mode on platforms that don't support __proto__. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | tests/language/mixin_proto_test.dart » ('j') | tests/language/mixin_proto_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart
diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart
index feaee8eec8c1afe7c2dd32d97f17c70355604762..95c7dc4b0841cb494575e876132c25f12ad3148e 100644
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart
@@ -499,6 +499,7 @@ function $setupProgramName(programData, typesOffset) {
chain = targetPrototype.#deferredAction;
}
return function foo() {
+ if (!supportsDirectProtoAccess) return;
var prototype = this;
// Find the actual prototype that this handler is installed on.
while (!prototype.hasOwnProperty(#deferredActionString)) {
« no previous file with comments | « no previous file | tests/language/mixin_proto_test.dart » ('j') | tests/language/mixin_proto_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698