현재 진행 중인 사용자 토론이 있습니다.
r13 vs r14 | ||
---|---|---|
1 | ||
1 | {{{#!syntax typescript |
|
2 | let test = true; |
|
3 | ||
4 | public asdfasdf { |
|
5 | test = false; |
|
6 | } |
|
7 | ||
8 | // 근데 ts 이따구로 쓰는게 맞긴 함? |
|
9 | }}} |
|
10 | typescript |
|
11 | ||
12 | {{{#!syntax javascript |
|
13 | const gdl = {}; |
|
14 | const blue = JSON.parse('{"__proto__":{"gdl": "Missing"}}'); |
|
15 | ||
16 | Object.assign(gdl, blue); |
|
17 | console.log(gdl.gdl); |
|
18 | // ProtoType Pollution!!!! |
|
19 | ||
20 | // 대충 저따구로 하면 프로토타입의 프로토타입의 프로토타입의.... 되어 영원히 반복된다고 한다 |
|
21 | }}} |