r19 | ||
---|---|---|
r18 (r14으로 되돌림) | 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 | }}} | |
r19 | 22 | |
23 | {{{#!syntax python | |
24 | alpha = 'wiki' | |
25 | the = 'tree' | |
26 | ||
27 | if alpha == 'wiki': | |
28 | if the !== 'tree': | |
29 | print('알파위키'); | |
30 | else: | |
31 | print('테스트위키'); | |
32 | ||
33 | # 대충 이렇게 만들면 되겠지? | |
34 | }}} | |
35 |