1a2f41acf3fa292b1ea5527ae1f36f437e61beae
[platform/framework/web/crosswalk-tizen.git] /
1 'use strict';
2
3 var Type = require('../../type');
4
5 function resolveJavascriptUndefined() {
6   return true;
7 }
8
9 function constructJavascriptUndefined() {
10   return undefined;
11 }
12
13 function representJavascriptUndefined() {
14   return '';
15 }
16
17 function isUndefined(object) {
18   return 'undefined' === typeof object;
19 }
20
21 module.exports = new Type('tag:yaml.org,2002:js/undefined', {
22   kind: 'scalar',
23   resolve: resolveJavascriptUndefined,
24   construct: constructJavascriptUndefined,
25   predicate: isUndefined,
26   represent: representJavascriptUndefined
27 });