Skip to content

Commit 689c51f

Browse files
Fallback to a "__metadata" string property if Symbols aren't supported (IE11)
1 parent 9538a19 commit 689c51f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/util/meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var META_SYMBOL = Symbol('json-schema-ref-parser meta');
3+
var META_SYMBOL = typeof Symbol === "function" ? Symbol('json-schema-ref-parser metadata') : "__metadata";
44

55
/**
66
* Safely sets meta property on the given object value

0 commit comments

Comments
 (0)