An attempt to compile a list of examples of unsound behavior of Flow.
Flow doesn't check that all class properties are initialized in constructor:
class Foo {
function renderToObjC(latlngs) { | |
var code = '', | |
i, | |
count = latlngs.length + 1; | |
code += 'coordinates = malloc(' + count + ' * sizeof(CLLocationCoordinate2D));\n'; | |
for (i = 0; i < latlngs.length; i += 1) { | |
code += 'coordinates['; | |
code += i; |
######################### | |
# .gitignore file for Xcode4 / OS X Source projects | |
# | |
# Version 2.0 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# | |
# 2013 updates: | |
# - fixed the broken "save personal Schemes" | |
# | |
# NB: if you are storing "built" products, this WILL NOT WORK, |
#!/bin/bash | |
# https://gist.github.com/949831 | |
# http://blog.carbonfive.com/2011/05/04/automated-ad-hoc-builds-using-xcode-4/ | |
# command line OTA distribution references and examples | |
# http://nachbaur.com/blog/how-to-automate-your-iphone-app-builds-with-hudson | |
# http://nachbaur.com/blog/building-ios-apps-for-over-the-air-adhoc-distribution | |
# http://blog.octo.com/en/automating-over-the-air-deployment-for-iphone/ | |
# http://www.neat.io/posts/2010/10/27/automated-ota-ios-app-distribution.html |
var cloudAltitude = 1e4 | |
, fabric = { | |
type : 'Clouds', | |
uniforms : { | |
image : '/images/earthcloudmap.jpg', | |
alphaImage : '/images/earthcloudmaptrans.jpg' | |
}, | |
components : { | |
diffuse : 'texture2D(image, materialInput.st).rgb', | |
alpha : '1.0 - czm_luminance(texture2D(alphaImage, materialInput.st).rgb)' |
function getImage (url) { | |
var res; | |
var xhr = new XMLHttpRequest(); | |
xhr.open('GET', url, false); | |
xhr.responseType = 'arraybuffer'; | |
xhr.onload = function () { | |
res = btoa(String.fromCharCode.apply(null, new Uint8Array(xhr.response))) | |
}; | |
xhr.send(); | |
return res; |
MAGENTA="\[\033[0;35m\]" | |
YELLOW="\[\033[0;33m\]" | |
BLUE="\[\033[34m\]" | |
LIGHT_GRAY="\[\033[0;37m\]" | |
CYAN="\[\033[0;36m\]" | |
GREEN="\[\033[0;32m\]" | |
NORMAL="\[\033[0;0m\]" | |
GIT_PS1_SHOWDIRTYSTATE=true | |
export LS_OPTIONS='--color=auto' | |
export CLICOLOR='Yes' |
I/mbgl ( 5147): {Main}[OpenGL]: GL Vendor: Vivante Corporation | |
I/mbgl ( 5147): {Main}[OpenGL]: GL Renderer: GC1000 core | |
I/mbgl ( 5147): {Main}[OpenGL]: GL Version: OpenGL ES 2.0 | |
I/mbgl ( 5147): {Main}[OpenGL]: GL SL Version: OpenGL ES GLSL ES 1.00 | |
I/mbgl ( 5147): {Main}[OpenGL]: GL Extensions: GL_EXT_debug_marker GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_EGL_image GL_OES_depth24 GL_OES_fbo_render_mipmap GL_OES_fragment_precision_high GL_OES_rgb8_rgba8 GL_OES_stencil1 GL_OES_stencil4 GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_depth_texture GL_OES_packed_depth_stencil GL_OES_standard_derivatives GL_OES_get_program_binary GL_EXT_texture_format_BGRA8888 GL_IMG_read_format GL_EXT_blend_minmax GL_EXT_read_format_bgra GL_EXT_multi_draw_arrays GL_APPLE_texture | |
I/mbgl ( 5147): {Main}[OpenGL]: GL Extensions: _format_BGRA8888 GL_APPLE_texture_max_level GL_ARM_rgba8 GL_EXT_frag_depth GL_VIV_shader_binary GL_VIV_direct_texture GL_OES_mapbuffer GL_OES_EGL_image |
'use strict'; | |
const stream = require('stream'); | |
class A extends stream.Readable { | |
_read() { | |
} | |
} | |
class B extends stream.Writable { |
class WeakMap { | |
constructor() { | |
this.s = Symbol(); | |
} | |
set(key, val) { | |
key[this.s] = val; |