Add symbol to list of invalid targets

This commit is contained in:
Ujjwal Sharma 2018-09-18 01:19:01 +05:30 committed by Rick Waldron
parent db238a1abe
commit 12055caa1c
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ var functions = {
formatToParts: Intl.NumberFormat.prototype.formatToParts,
resolvedOptions: Intl.NumberFormat.prototype.resolvedOptions
};
var invalidTargets = [undefined, null, true, 0, "NumberFormat", [], {}];
var invalidTargets = [undefined, null, true, 0, "NumberFormat", [], {}, Symbol()];
Object.getOwnPropertyNames(functions).forEach(function (functionName) {
var f = functions[functionName];