зеркало из https://github.com/mozilla/pjs.git
fix for linux bustage
This commit is contained in:
Родитель
a0702b9992
Коммит
0a0acdcf76
|
@ -33,12 +33,10 @@ namespace JS = JavaScript;
|
||||||
// sourceLocation describes the origin of the source and may be used for error messages.
|
// sourceLocation describes the origin of the source and may be used for error messages.
|
||||||
// initialLineNum is the line number of the first line of the source string.
|
// initialLineNum is the line number of the first line of the source string.
|
||||||
JS::Reader::Reader(const String &source, const String &sourceLocation, uint32 initialLineNum):
|
JS::Reader::Reader(const String &source, const String &sourceLocation, uint32 initialLineNum):
|
||||||
source(source), sourceLocation(sourceLocation), initialLineNum(initialLineNum)
|
source(source + uni::null), sourceLocation(sourceLocation), initialLineNum(initialLineNum)
|
||||||
{
|
{
|
||||||
const char16 *b = Reader::source.c_str();
|
begin = p = this->source.data();
|
||||||
begin = b;
|
end = begin + this->source.size() - 1;
|
||||||
p = b;
|
|
||||||
end = b + Reader::source.size();
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
recordString = 0;
|
recordString = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -33,12 +33,10 @@ namespace JS = JavaScript;
|
||||||
// sourceLocation describes the origin of the source and may be used for error messages.
|
// sourceLocation describes the origin of the source and may be used for error messages.
|
||||||
// initialLineNum is the line number of the first line of the source string.
|
// initialLineNum is the line number of the first line of the source string.
|
||||||
JS::Reader::Reader(const String &source, const String &sourceLocation, uint32 initialLineNum):
|
JS::Reader::Reader(const String &source, const String &sourceLocation, uint32 initialLineNum):
|
||||||
source(source), sourceLocation(sourceLocation), initialLineNum(initialLineNum)
|
source(source + uni::null), sourceLocation(sourceLocation), initialLineNum(initialLineNum)
|
||||||
{
|
{
|
||||||
const char16 *b = Reader::source.c_str();
|
begin = p = this->source.data();
|
||||||
begin = b;
|
end = begin + this->source.size() - 1;
|
||||||
p = b;
|
|
||||||
end = b + Reader::source.size();
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
recordString = 0;
|
recordString = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
Загрузка…
Ссылка в новой задаче