module

Duktape

time.cr: duktape time handling

Copyright (c) 2017 Jesse Doyle. All rights reserved.

This is free software. Please see LICENSE for details.

Constants

TYPE_TO_NUM = TYPES.invert
TYPES = {LibDUK::Type::None.value => :none, LibDUK::Type::Undefined.value => :undefined, LibDUK::Type::Null.value => :null, LibDUK::Type::Boolean.value => :boolean, LibDUK::Type::Number.value => :number, LibDUK::Type::String.value => :string, LibDUK::Type::Object.value => :object, LibDUK::Type::Buffer.value => :buffer, LibDUK::Type::Pointer.value => :pointer, LibDUK::Type::Lightfunc.value => :lightfunc}

Class methods

api_version
Source
create_heap(udata : Pointer(Void) | Nil = nil, &fatal : Pointer(Void), Pointer(UInt8) -> NoReturn)
Source
create_heap_default
Source
create_heap_udata(udata : Pointer(Void))
Source
destroy_heap(ctx : LibDUK::Context)
Source
version
Source

Macros

define_error_class(klass, parent)
Source

Nested types