зеркало из https://github.com/mozilla/pjs.git
duh, can't use wide string constants on Linux
This commit is contained in:
Родитель
26a073ebc4
Коммит
1a2406676c
|
@ -404,12 +404,12 @@ static float64 testObjects(World &world, int32 n)
|
|||
ICodeGenerator initCG;
|
||||
|
||||
// var global = new Object();
|
||||
StringAtom& global = world.identifiers[L"global"];
|
||||
StringAtom& global = world.identifiers[widenCString("global")];
|
||||
initCG.beginStatement(position);
|
||||
initCG.saveName(global, initCG.newObject());
|
||||
|
||||
// global.counter = 0;
|
||||
StringAtom& counter = world.identifiers[L"counter"];
|
||||
StringAtom& counter = world.identifiers[widenCString("counter")];
|
||||
initCG.beginStatement(position);
|
||||
initCG.setProperty(counter, initCG.loadName(global), initCG.loadImmediate(0.0));
|
||||
|
||||
|
|
|
@ -404,12 +404,12 @@ static float64 testObjects(World &world, int32 n)
|
|||
ICodeGenerator initCG;
|
||||
|
||||
// var global = new Object();
|
||||
StringAtom& global = world.identifiers[L"global"];
|
||||
StringAtom& global = world.identifiers[widenCString("global")];
|
||||
initCG.beginStatement(position);
|
||||
initCG.saveName(global, initCG.newObject());
|
||||
|
||||
// global.counter = 0;
|
||||
StringAtom& counter = world.identifiers[L"counter"];
|
||||
StringAtom& counter = world.identifiers[widenCString("counter")];
|
||||
initCG.beginStatement(position);
|
||||
initCG.setProperty(counter, initCG.loadName(global), initCG.loadImmediate(0.0));
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче