| Index: tools/js2c.py
|
| diff --git a/tools/js2c.py b/tools/js2c.py
|
| index 9492b0030c0dbf56f91f78208230e3aa89db300e..49186e846022e00f417628203ce488313e4c637f 100644
|
| --- a/tools/js2c.py
|
| +++ b/tools/js2c.py
|
| @@ -259,7 +259,7 @@ namespace internal {
|
| template <>
|
| Vector<const char> NativesCollection<%(type)s>::GetScriptName(int index) {
|
| %(get_script_name_cases)s\
|
| - return Vector<const char>("", 0);
|
| + return Vector<const char>("", 1);
|
| }
|
|
|
| template <>
|
| @@ -364,7 +364,7 @@ def JS2C(source, target, env):
|
| })
|
| get_script_name_cases.append(GET_SCRIPT_NAME_CASE % {
|
| 'name': native_name,
|
| - 'length': len(native_name),
|
| + 'length': len(native_name) + 1,
|
| 'i': i
|
| })
|
| i = i + 1
|
|
|