Unreviewed. Try to fix Windows build after r233377
authorsbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 30 Jun 2018 00:55:57 +0000 (00:55 +0000)
committersbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 30 Jun 2018 00:55:57 +0000 (00:55 +0000)
* builtins/BuiltinExecutables.cpp:
(JSC::BuiltinExecutables::createExecutable):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233383 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/builtins/BuiltinExecutables.cpp

index dc12e03..5ca7569 100644 (file)
@@ -1,5 +1,12 @@
 2018-06-29  Saam Barati  <sbarati@apple.com>
 
+        Unreviewed. Try to fix Windows build after r233377
+
+        * builtins/BuiltinExecutables.cpp:
+        (JSC::BuiltinExecutables::createExecutable):
+
+2018-06-29  Saam Barati  <sbarati@apple.com>
+
         Don't use tracePoints in JS/Wasm entry
         https://bugs.webkit.org/show_bug.cgi?id=187196
 
index c70c181..0366f21 100644 (file)
@@ -106,15 +106,15 @@ UnlinkedFunctionExecutable* BuiltinExecutables::createExecutable(VM& vm, const S
 
     JSTokenLocation start;
     start.line = -1;
-    start.lineStartOffset = -1;
+    start.lineStartOffset = std::numeric_limits<unsigned>::max();
     start.startOffset = 10;
-    start.endOffset = -1;
+    start.endOffset = std::numeric_limits<unsigned>::max();
 
     JSTokenLocation end;
     end.line = 1;
     end.lineStartOffset = 0;
     end.startOffset = 1;
-    end.endOffset = -1;
+    end.endOffset = std::numeric_limits<unsigned>::max();
 
     unsigned startColumn = 10; // strlen("function (") == 10
     int functionKeywordStart = 1; // (f