Skip to content

Commit ade59a0

Browse files
author
Ian Halliday
committed
[MERGE #1440 @ianwjhalliday] Fixes build break on Chinese Windows 10 VS 2015
Merge pull request #1440 from ianwjhalliday:fix1429 Fixes #1429 Chevron characters appears in the source comments but the compiler on Chinese Windows 10 believes the code page for the source file cannot represent these characters. Fix by converting them to '<<' and '>>'
2 parents 412b998 + bb6999d commit ade59a0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/Runtime/Library/JavascriptPromise.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace Js
5151
}
5252
RecyclableObject* executor = RecyclableObject::FromVar(args[1]);
5353

54-
// 3. Let promise be ? OrdinaryCreateFromConstructor(NewTarget, "%PromisePrototype%", «[[PromiseState]], [[PromiseResult]], [[PromiseFulfillReactions]], [[PromiseRejectReactions]], [[PromiseIsHandled]] »).
54+
// 3. Let promise be ? OrdinaryCreateFromConstructor(NewTarget, "%PromisePrototype%", <<[[PromiseState]], [[PromiseResult]], [[PromiseFulfillReactions]], [[PromiseRejectReactions]], [[PromiseIsHandled]] >>).
5555
JavascriptPromise* promise = library->CreatePromise();
5656
if (isCtorSuperCall)
5757
{
@@ -70,7 +70,7 @@ namespace Js
7070

7171
JavascriptExceptionObject* exception = nullptr;
7272

73-
// 9. Let completion be Call(executor, undefined, « resolvingFunctions.[[Resolve]], resolvingFunctions.[[Reject]] »).
73+
// 9. Let completion be Call(executor, undefined, << resolvingFunctions.[[Resolve]], resolvingFunctions.[[Reject]] >>).
7474
try
7575
{
7676
CALL_FUNCTION(executor, CallInfo(CallFlags_Value, 3),
@@ -86,7 +86,7 @@ namespace Js
8686
if (exception != nullptr)
8787
{
8888
// 10. If completion is an abrupt completion, then
89-
// a. Perform ? Call(resolvingFunctions.[[Reject]], undefined, « completion.[[Value]] »).
89+
// a. Perform ? Call(resolvingFunctions.[[Reject]], undefined, << completion.[[Value]] >>).
9090
TryRejectWithExceptionObject(exception, reject, scriptContext);
9191
}
9292

@@ -453,7 +453,7 @@ namespace Js
453453
// 3. Let promiseCapability be NewPromiseCapability(C).
454454
JavascriptPromiseCapability* promiseCapability = NewPromiseCapability(constructor, scriptContext);
455455

456-
// 4. Perform ? Call(promiseCapability.[[Reject]], undefined, « r »).
456+
// 4. Perform ? Call(promiseCapability.[[Reject]], undefined, << r >>).
457457
TryCallResolveOrRejectHandler(promiseCapability->GetReject(), r, scriptContext);
458458

459459
// 5. Return promiseCapability.[[Promise]].
@@ -507,7 +507,7 @@ namespace Js
507507
// 4. Let promiseCapability be NewPromiseCapability(C).
508508
JavascriptPromiseCapability* promiseCapability = NewPromiseCapability(constructor, scriptContext);
509509

510-
// 5. Perform ? Call(promiseCapability.[[Resolve]], undefined, « x »).
510+
// 5. Perform ? Call(promiseCapability.[[Resolve]], undefined, << x >>).
511511
TryCallResolveOrRejectHandler(promiseCapability->GetResolve(), x, scriptContext);
512512

513513
// 6. Return promiseCapability.[[Promise]].

0 commit comments

Comments
 (0)