Chromium Code Reviews| Index: lib/dom/scripts/systemnative.py |
| diff --git a/lib/dom/scripts/systemnative.py b/lib/dom/scripts/systemnative.py |
| index 57f9527d3447ee942253701880c2211293d3b8b6..b53e0086e0812512cdafcea0d67abacfca407a0f 100644 |
| --- a/lib/dom/scripts/systemnative.py |
| +++ b/lib/dom/scripts/systemnative.py |
| @@ -315,6 +315,16 @@ class NativeImplementationGenerator(systembase.BaseGenerator): |
| ' }', |
| FEATURE=self._interface.ext_attrs['synthesizedV8EnabledPerContext']) |
| + if 'synthesizedV8EnabledAtRuntime' in self._interface.ext_attrs: |
|
podivilov
2012/06/26 10:51:13
Shouldn't that be elif?
Anton Muhin
2012/06/26 12:16:35
Added assert instead
On 2012/06/26 10:51:13, podi
|
| + raises_exceptions = True |
| + self._cpp_impl_includes.add('"RuntimeEnabledFeatures.h"') |
| + runtime_check = emitter.Format( |
| + ' if (!RuntimeEnabledFeatures::$(FEATURE)Enabled()) {\n' |
| + ' exception = Dart_NewString("Feature $FEATURE is not enabled");\n' |
| + ' goto fail;\n' |
| + ' }', |
| + FEATURE=self._interface.ext_attrs['synthesizedV8EnabledAtRuntime']) |
| + |
| self._GenerateNativeCallback(callback_name='constructorCallback', |
| parameter_definitions=parameter_definitions_emitter.Fragments(), |
| needs_receiver=False, invocation=invocation, |