Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/utils/reflect.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copied from https://github.com/rbuckton/reflect-metadata/blob/master/Reflect.ts
/*! *****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
Expand Down Expand Up @@ -740,12 +741,12 @@ export namespace Reflect {
// feature test for Symbol support
const supportsSymbol = typeof Symbol === "function";
const toPrimitiveSymbol =
supportsSymbol && typeof Symbol.toPrimitive !== "undefined"
? Symbol.toPrimitive
supportsSymbol && typeof (Symbol as any).toPrimitive !== "undefined"
? (Symbol as any).toPrimitive
: "@@toPrimitive";
const iteratorSymbol =
supportsSymbol && typeof Symbol.iterator !== "undefined"
? Symbol.iterator
supportsSymbol && typeof (Symbol as any).iterator !== "undefined"
? (Symbol as any).iterator
: "@@iterator";
const supportsCreate = typeof Object.create === "function"; // feature test for Object.create support
const supportsProto = { __proto__: [] } instanceof Array; // feature test for __proto__ support
Expand Down