diff options
author | 迷渡 <justjavac@gmail.com> | 2019-04-19 09:56:33 +0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-18 21:56:33 -0400 |
commit | d0cd7a39a2d05343c5501dc286bb59096659654f (patch) | |
tree | adffb215b15e8ca3411db732f5604158e5ab9640 /js/blob.ts | |
parent | 2be7e4440339f616a37b9535cc38936f80efc0e1 (diff) |
avoid prototype builtin hasOwnProperty (#2144)
Diffstat (limited to 'js/blob.ts')
-rw-r--r-- | js/blob.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/blob.ts b/js/blob.ts index c23b74afb..092bfaa08 100644 --- a/js/blob.ts +++ b/js/blob.ts @@ -1,6 +1,6 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import * as domTypes from "./dom_types"; -import { containsOnlyASCII } from "./util"; +import { containsOnlyASCII, hasOwnProperty } from "./util"; import { TextEncoder } from "./text_encoding"; export const bytesSymbol = Symbol("bytes"); @@ -91,7 +91,7 @@ export class DenoBlob implements domTypes.Blob { options = options || {}; // Set ending property's default value to "transparent". - if (!options.hasOwnProperty("ending")) { + if (!hasOwnProperty(options, "ending")) { options.ending = "transparent"; } |