| Index: lib/dom/scripts/systemnative.py
|
| diff --git a/lib/dom/scripts/systemnative.py b/lib/dom/scripts/systemnative.py
|
| index 6415fd3c417604f75ab8749d2106d5043619ce1f..aa346faf7551d34a1f2f90f0f034b5ce8a66b189 100644
|
| --- a/lib/dom/scripts/systemnative.py
|
| +++ b/lib/dom/scripts/systemnative.py
|
| @@ -939,7 +939,9 @@ class NativeImplementationGenerator(systembase.BaseGenerator):
|
| INVOCATION=invocation_template)
|
|
|
| if 'ImplementedBy' in attributes:
|
| - arguments.insert(0, 'receiver')
|
| + # FIXME: rather ugly way to solve the problem.
|
| + index = 1 if 'ScriptExecutionContext' == attributes.get('CallWith') else 0
|
| + arguments.insert(index, 'receiver')
|
| self._cpp_impl_includes.add('"%s.h"' % attributes['ImplementedBy'])
|
|
|
| return emitter.Format(invocation_template,
|
|
|