Index: tests/com/google/caja/plugin/test-scan-core.js |
=================================================================== |
--- tests/com/google/caja/plugin/test-scan-core.js (revision 5716) |
+++ tests/com/google/caja/plugin/test-scan-core.js (working copy) |
@@ -240,7 +240,11 @@ |
} |
return instances.get(ctor); |
} |
- obtainInstance.define = instances.set.bind(instances); |
+ obtainInstance.define = function(ctor, instance) { |
+ if (ctor !== undefined) { // allow not-implemented-in-this-browser |
+ instances.set(ctor, instance); |
+ } |
+ }; |
return obtainInstance; |
} |